package com.bamboo.tool.template.torna.entity;

import lombok.Data;

/**
 * @author bamboo
 * Date 2022/9/20 16:15
 * Description
 */
@Data
public class TornaRespBase<T> {

    private static final String CODE_SUCCESS = "0";
    private static final String CODE_ERROR = "100";


    private String code;
    private T data;
    private String msg;

    public boolean isOk() {
        return CODE_SUCCESS.equals(code);
    }
}
